package com.ncwu.product.service.impl;

import com.ncwu.product.bean.Product;
import com.ncwu.product.service.ProductService;
import org.springframework.stereotype.Service;

import java.math.BigDecimal;


@Service
public class ProductServiceImpl implements ProductService {
    @Override
    public Product getProduct(Long productId) {
        Product product = new Product();
        product.setProductId(productId);
        product.setPrize(new BigDecimal("66"));
        product.setName("红米手机");
        product.setCount(2);
        return product;
    }
}
